package com.lee.security.dao;

import java.util.List;

import com.lee.security.entity.SysRole;
import com.lee.security.entity.SysUser;

public interface SysUsersRepository {

	/**
	 * 根据姓名查询用户
	 */
	SysUser getByUsername(String username);

	/**
	 * 根据用户名查询用户拥有的权限
	 */
	List<SysRole> getSysRolesByUsername(String username);
}